<?php 


$this->orderContainer->log($this->orderContainer->id()." User on confirmation page.");
$status = $this->orderContainer->valueForKey('status');

if ( $status  == ORDER_STATUS_AUTH || $status == ORDER_STATUS_ACCEPTED 
//|| $this->orderContainer->valueForKey('status') == ORDER_STATUS_ACCEPTED_MAIL
) {

	
	echo fta_widgetH1Tag('Purchase Complete');
	echo fta_widgetH3Tag('Your purchase has completed successfully')
?>			
 Thank you for your purchase. Your order number is <strong>#<?=$this->orderContainer->valueForKey('id')?></strong>.
 An email confirmation of your purchase has been sent to your email address.


<?
	$this->orderContainer->log($this->orderContainer->id()." Order Completed");
	
}else{

	echo fta_widgetH1Tag("There was a problem processing your order...");
?>    
	 

<? 
	if($this->orderContainer->valueForKey('status') == 135) { 
		echo fta_widgetH3Tag('Your card was declined');
	} 
	
	$this->orderContainer->log($this->orderContainer->id()." Order Failed");
//	$this->orderContainer = null;
}

?>
    <br/><br/>If you are having trouble or problems with your order, contact us and we will check out the transaction.
